﻿using Abp.Application.Services.Dto;
using Abp.Application.Services;
using System;
using Choucius.Boilerplate9.ProductContainerRelationships.Dto;

namespace Choucius.Boilerplate9.ProductContainerRelationships
{
    /// <summary>
    /// 产品与容器的绑定关系
    /// </summary>
    public interface IProductContainerRelationshipAppService : IAsyncCrudAppService<ProductContainerRelationshipDto, Guid, PagedResultRequestDto, ProductContainerRelationshipDto, ProductContainerRelationshipDto>
    {
        /// <summary>
        /// 根据吸塑盒ID获取该吸塑盒可以摆放的产品数量
        /// </summary>
        /// <param name="productErpId">吸塑盒ID</param>
        /// <returns>该吸塑盒可以摆放的产品数量</returns>
        int GetQuantityPerPlasticContainerByProduct(string productErpId);

        /// <summary>
        /// 根据吸塑盒ERP_ID获取吸塑盒名称
        /// </summary>
        /// <param name="plasticContainerErpId"></param>
        /// <returns></returns>
        string GetPlasticContainerNameByPlasticContainerErpId(string plasticContainerErpId);
    }
}
